#!/bin/sh

MYLOC=`dirname $0`
RMLST=${MYLOC}/removeme.txt

> ${RMLST}

find "${MYLOC}" | grep CMakeCache >> ${RMLST}
find "${MYLOC}" | grep CMakeFiles >> ${RMLST}
find "${MYLOC}" | grep CPack >> ${RMLST}
find "${MYLOC}" | grep cmake_install.cmake >> ${RMLST}
find "${MYLOC}" | grep install_manifest.txt >> ${RMLST}
find "${MYLOC}" | grep Makefile >> ${RMLST}

cat "${RMLST}" | xargs rm -rf
rm -rf "${RMLST}"
